<?php

#Inisialisasi koneksi
$host       = "localhost";
$username   = "root";
$password   = "";
$database   = "db_shadow";

#Jalankan koneksi ke database
$DB_CONN = mysql_connect($host, $username, $password);

#Pilih database
$usedb = mysql_select_db($database, $DB_CONN);
if(!($usedb)) {
    echo mysql_error();
}

?>